From: Carlos Garnacho Date: Fri, 5 Sep 2014 20:44:19 +0000 (+0200) Subject: windowManager: limit the "switch app" gesture to !overview.visible X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2180 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=215eb5c65f885ff4317f4d5649f29c8bf33ecb7d;p=gnome-shell.git windowManager: limit the "switch app" gesture to !overview.visible This gesture only makes sense to be triggered outside the overview, when dealing with application windows themselves. https://bugzilla.gnome.org/show_bug.cgi?id=736110 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 101f9a8d7..ac723a516 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -526,6 +526,11 @@ const AppSwitchAction = new Lang.Class({ }, vfunc_gesture_prepare : function(action, actor) { + if (Main.overview.visible) { + this.cancel(); + return false; + } + return this.get_n_current_points() <= 4; },